package com.fengzhi.web.service.ssh.impl;

import com.fengzhi.web.dao.ssh.IUserDao;
import com.fengzhi.web.entity.TbUser;
import com.fengzhi.web.service.ssh.IUserService;

public class UserServiceImpl implements IUserService {

	// 通过spring ioc 注入实例化对象
	private IUserDao userDao;

	@Override
	public TbUser findUserByUsername(String username) {
		return userDao.findUserByUsername(username);
	}

	@Override
	public void addUser(TbUser user) {
		userDao.addUser(user);
	}

	public IUserDao getUserDao() {
		return userDao;
	}

	public void setUserDao(IUserDao userDao) {
		this.userDao = userDao;
	}

}
